package com.bmf.admin.module.scenario.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;


/**
 * 想定兵力属性表(ScenarioForcesParam)表实体类
 *
 * @author aries
 * @since 2024-08-01 15:51:15
 */
@Data
@Schema(description = "想定兵力属性表")
@TableName("scenario_param")
public class ScenarioParam implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "想定id")
    private String scenarioId;

    @Schema(description = "想定兵力id")
    private String forcesId;

    @Schema(description = "属性名称")
    private String paramName;

    @Schema(description = "属性值")
    private String paramValue;

    @Schema(description = "值类型")
    private String paramType;

    @Schema(description = "量纲")
    private Integer unit;

    /**
     * 设置想定id和兵力id
     *
     * @param scenarioId 想定id
     * @param newId      兵力id
     */
    public void updateScenarioIdAndForcesId(String scenarioId, String newId) {
        this.scenarioId = scenarioId;
        this.forcesId = newId;
    }
}

